%% -------------------------------------------------------------------------------------------------
%% Generate PWT Memory Data
%% -------------------------------------------------------------------------------------------------
function Word64Output = fun_Word64Exchange(Word64_Input)

    Hex_Word64 = dec2hex(Word64_Input, 16);
    
    
    Hex_Word64_Exchange( 1) = Hex_Word64(15);
    Hex_Word64_Exchange( 2) = Hex_Word64(16);
    Hex_Word64_Exchange( 3) = Hex_Word64(13);
    Hex_Word64_Exchange( 4) = Hex_Word64(14);
    Hex_Word64_Exchange( 5) = Hex_Word64(11);
    Hex_Word64_Exchange( 6) = Hex_Word64(12);
    Hex_Word64_Exchange( 7) = Hex_Word64( 9);
    Hex_Word64_Exchange( 8) = Hex_Word64(10);
    Hex_Word64_Exchange( 9) = Hex_Word64( 7);
    Hex_Word64_Exchange(10) = Hex_Word64( 8);
    Hex_Word64_Exchange(11) = Hex_Word64( 5);
    Hex_Word64_Exchange(12) = Hex_Word64( 6);
    Hex_Word64_Exchange(13) = Hex_Word64( 3);
    Hex_Word64_Exchange(14) = Hex_Word64( 4);    
    Hex_Word64_Exchange(15) = Hex_Word64( 1);   
    Hex_Word64_Exchange(16) = Hex_Word64( 2);  
    
    Word64Output = hex2dec(Hex_Word64_Exchange);

end    